﻿#region Copyright Notice
// This file is part of GestionPedago.
// <description>
// Copyright (C) 2012 ENI Ecole Informatique
// 
// GestionPedago is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// <program> is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using GestionPedago.Services.ES.Modele;

namespace GestionPedago.View {
    /// <summary>
    /// Logique d'interaction pour EditAppreciation.xaml
    /// </summary>
    public partial class EditAppreciation : Window {

        //public List<ContactENIES> Formateurs { get; set; }
        //public List<PlanningIndividuelDetailES> ListeCours { get; set; }




        public List<ContactENIES> Formateurs {
            get { return (List<ContactENIES>)GetValue(FormateursProperty); }
            set { SetValue(FormateursProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Formateurs.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty FormateursProperty = 
    DependencyProperty.Register("Formateurs", typeof(List<ContactENIES>), typeof(EditAppreciation), new UIPropertyMetadata(null));






        public List<PlanningIndividuelDetailES> ListeCours {
            get { return (List<PlanningIndividuelDetailES>)GetValue(ListeCoursProperty); }
            set { SetValue(ListeCoursProperty, value); }
        }

        // Using a DependencyProperty as the backing store for ListeCours.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ListeCoursProperty = 
    DependencyProperty.Register("ListeCours", typeof(List<PlanningIndividuelDetailES>), typeof(EditAppreciation), new UIPropertyMetadata(null));

        
        



        public ContactENIES Formateur {
            get { return (ContactENIES)GetValue(FormateurProperty); }
            set { SetValue(FormateurProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Formateur.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty FormateurProperty = 
    DependencyProperty.Register("Formateur", typeof(ContactENIES), typeof(EditAppreciation), new UIPropertyMetadata(null));




        public CoursES Cours {
            get { return (CoursES)GetValue(CoursProperty); }
            set { SetValue(CoursProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Cours.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty CoursProperty = 
    DependencyProperty.Register("Cours", typeof(CoursES), typeof(EditAppreciation), new UIPropertyMetadata(null));





        public string Remarque {
            get { return (string)GetValue(RemarqueProperty); }
            set { SetValue(RemarqueProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Remarque.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty RemarqueProperty = 
    DependencyProperty.Register("Remarque", typeof(string), typeof(EditAppreciation), new UIPropertyMetadata(""));

        

        public EditAppreciation(List<ContactENIES> formateurs, List<PlanningIndividuelDetailES> listeCours) {
           
            DataContext = this;
            InitializeComponent();
            Formateurs = formateurs;
            ListeCours = listeCours;
        }

        private void Button_Click_1(object sender, RoutedEventArgs e) {

            this.DialogResult = true;
            this.Close();
        }

    }
}
